﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AvansRS.Domain;

namespace AvansRS.Data.InsertBuilders
{
    class InsertEvent : Insert<Event>
    {
        public InsertEvent() : base(new Event())
        {
            
        }

        public InsertEvent WithName(string name)
        {
            Instance.Name = name;
            return this;
        }

        public InsertEvent WithDescription(string description)
        {
            Instance.Description = description;
            return this;
        }

        public InsertEvent WithMaxRegistrations(int maxRegistrations)
        {
            Instance.MaxRegistrations = maxRegistrations;
            return this;
        }

        public InsertEvent WithLocation(Location location)
        {
            Instance.Location = location;
            return this;
        }

        public InsertEvent WithEventDates(IList<EventDate> eventDates)
        {
            Instance.EventDates = eventDates;
            return this;
        }

        public InsertEvent WithApplicableEntities(IList<Entity> entities)
        {
            Instance.ApplicableEntities = entities;
            return this;
        }
    }
}
